package com.yc.mybatis.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author k
 * @since 2024-12-07
 */
@Getter
@Setter
@TableName("advertisements")
public class Advertisements implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("image")
    private byte[] image;

    @TableField("www")
    private String www;

    @TableField("description")
    private String description;

    @TableField("begin_time")
    private LocalDateTime beginTime;

    @TableField("click_count")
    private Integer clickCount;

    @TableField("closing_count")
    private Integer closingCount;

    @TableField("status")
    private Boolean status;

    @TableField("position")
    private String position;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_time")
    private LocalDateTime updatedTime;
}
